package middleware

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

func PrintHeaders() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Request.ParseForm()
		fmt.Println("URL:", c.Request.URL)
		fmt.Println("Method:", c.Request.Method)
		fmt.Println("Body:", c.Request.Body)
		fmt.Println("Form:", c.Request.Form)
		fmt.Println("Header:", c.Request.Header)
		fmt.Println("Cookies:", c.Request.Cookies())
		c.Next()
	}
}
